#define  _CRT_SECURE_NO_WARNINGS 1	
#include"Queue.h"

void test1()
{
	Queue Q;
	QueueInit(&Q);
	QueuePush(&Q, 1);
	QueuePush(&Q, 2);
	QueuePush(&Q, 3);
	QueuePush(&Q, 4);
	QueuePush(&Q, 5);

	printf("%d\n", QueueSize(&Q));

	while (!QueueEmpty(&Q))
	{
		printf("%d ", QueueFront(&Q));
		QueuePop(&Q);
	}
	QueuePop(&Q); QueuePop(&Q); QueuePop(&Q); QueuePop(&Q); QueuePop(&Q); QueuePop(&Q); QueuePop(&Q);
	printf("\n");
	printf("%d\n", QueueSize(&Q));

}

int main()
{
	test1();
	return 0;
}